import requests

headers = {
    'Cookie':'SINAGLOBAL=618919066387.7864.1624346401618; UOR=ilive.lenovo.com.cn,s.weibo.com,www.baidu.com; ULV=1716366070239:66:2:2:5532168364156.516.1716366070205:1715763314391; ALF=1719305546; SUB=_2A25LVogaDeRhGeBM7FMY9y_MzDqIHXVoLYXSrDV8PUJbkNAbLRTWkW1NRNyWoYATpTu8yUJoC4JpQq0wCMBzOvam; SUBP=0033WrSXqPxfM725Ws9jqgMF55529P9D9WhTNAlv6EWJAXoS..AAr1Kh5JpX5KMhUgL.FoqES024S027S0q2dJLoI0qLxKBLB.zL1KqLxK-L12qLB-2LxKqL1KnLB-qLxKqL1-eL1h.LxKML1hzLBo.LxK-L1K2L1hqt; XSRF-TOKEN=Q3jeK_Zd0RwKOrKEz_Ryntjv; PC_TOKEN=18364dc13e; WBStorage=267ec170|undefined; WBPSESS=03Rwz19Z2C7dvXKIo40JJUonpHzzhP1JQuWdfXlDkW7M72rIIe3Dsnpc0CcHRu13i00NolQxteLqwd94N7psmAug5zu-W4pmN0kNmAat9fshwl-Tr9eFunu1D2NlVmjtUwpGRtQIYa53qTGGbiLdDw==',
    # 'Referer':'https://weibo.com/',
    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0'
}

url = 'https://weibo.com/ajax/profile/getImageWall?uid=7744301004&sinceid=0&has_album=true'
resp = requests.get(url,headers= headers)
# img = resp.content
print(resp.text)
# with open('爬取文件/{}.jpg'.format(1),mode='wb') as file:
#     file.write(img)